# Tanım: Hafif Equinox Masaüstü Ortamı
# URL: http://equinox-project.org/
# Paketçi: Cihan_Alkan 
# Gerekler: ftjam asciidoc edelib

isim=ede
surum=2.1
devir=1
_watch="http://equinox-project.org/wiki/Download"

kaynak=(http://downloads.sourceforge.net/project/ede/$isim/$surum/$isim-$surum.tar.gz)

derle() {

    cd "$SRC/$isim-$surum"
    find ./ -type f -name '*.py' | xargs -n 1 sed -i 's|/usr/bin/env python$|/usr/bin/env python2|'
    CFLAGS="-mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC"
    CXXFLAGS="-mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC"
    MAKEFLAGS="-j1"
    ./autogen.sh
    ./configure --prefix=/usr
    # http://sourceforge.net/projects/ede/forums/forum/249616/topic/5288645
    sed -i '15i unset XDG_{DATA,CONFIG,CACHE,MENUS}_{HOME,DIRS,PREFIX}' data/startede
    # jam is weird, likes to error
    jam || true

    jam prefix="$PKG/usr" install || true

}
